package com.zwy;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity;

/**
 * Hello world!
 *
 */
@MapperScan("com.zwy.mapper")
@SpringBootApplication
@EnableMethodSecurity
@Slf4j
public class App {

    public static void main(String[] args) {
        SpringApplication.run(App.class, args);

        log.info(
                """
                \n
                ---------------------------------------------------------恭喜你成功启动后端---------------------------------------------------------
                                           _                          _     _            \s
                                                  (_)                        | |   | |           \s
                                     __      _____ _ _   _  ___  _   _ ______| |__ | | ___   __ _\s
                                     \\ \\ /\\ / / _ \\ | | | |/ _ \\| | | |______| '_ \\| |/ _ \\ / _` |
                                      \\ V  V /  __/ | |_| | (_) | |_| |      | |_) | | (_) | (_| |
                                       \\_/\\_/ \\___|_|\\__, |\\___/ \\__,_|      |_.__/|_|\\___/ \\__, |
                                                      __/ |                                  __/ |
                                                     |___/                                  |___/\s


                """
        );
    }
}